]> dgit.raspbian.org Git - ostree.git/commitdiff
tests: Run clang-format on test-validate-utf8.c
authorJoseph Marrero Corchado <jmarrero@redhat.com>
Mon, 29 Jun 2026 19:16:31 +0000 (15:16 -0400)
committerJoseph Marrero Corchado <jmarrero@redhat.com>
Mon, 29 Jun 2026 19:16:31 +0000 (15:16 -0400)
The file introduced in commit ac10a27d was not run through
clang-format before merging. Reformat the invalid_333 char array
initializer to comply with the project's .clang-format rules.

Fixes the clang-format-check CI job failure.

tests/test-validate-utf8.c

index dc561a28e2d8f7b0653e19899748a8876d3d2606..4aa07cfc8a0256fade48bd11d345c2569ca3961a 100644 (file)
@@ -82,11 +82,10 @@ test_invalid_utf8_refs (void)
   g_clear_error (&error);
 
   /* Invalid UTF-8: 0x333 as mentioned in issue #2959 */
-  const char invalid_333[] = { 's', 'o', 'm', 'e', '-', 'b', 'r', 'a', 'n', 'c',
-                               'h', '-', 'n', 'a', 'm', 'e', '-', 'w', 'i', 't',
-                               'h', '-', 'i', 'n', 'v', 'a', 'l', 'i', 'd', '-',
-                               'u', 't', 'f', '-', 's', 'y', 'm', 'b', 'o', 'l',
-                               '-', '\xdb', '\0' };
+  const char invalid_333[]
+      = { 's', 'o', 'm', 'e', '-', 'b', 'r', 'a', 'n', 'c', 'h', '-',    'n', 'a', 'm',
+          'e', '-', 'w', 'i', 't', 'h', '-', 'i', 'n', 'v', 'a', 'l',    'i', 'd', '-',
+          'u', 't', 'f', '-', 's', 'y', 'm', 'b', 'o', 'l', '-', '\xdb', '\0' };
   g_assert_false (ostree_validate_rev (invalid_333, &error));
   g_assert_nonnull (error);
   g_clear_error (&error);